package com.splunk.hiring.imov.entity.dto;

import java.util.List;

import com.splunk.hiring.imov.entity.Movie;
import com.splunk.hiring.imov.entity.MovieDetail;
import com.splunk.hiring.imov.entity.MovieInfo;
import com.splunk.hiring.imov.entity.convertor.GenreListConvertor;

public class MovieDetailDTO{

	private MovieDetail movieDetail;
	
	public MovieDetailDTO(MovieDetail movieDetail){
		this.movieDetail = movieDetail;
	}
	
	public Long getId() {
		return movieDetail.getId();
	}
	public String getTitle() {
		return movieDetail.getTitle();
	}
	public String getGenres() {
		String genres = movieDetail.getGenres();
		if(null == genres){
			return "";
		} else {
			return genres;
		}
	}
	public int getYear() {
		return movieDetail.getYear();
	}
	public Integer getRateCount() {
		return movieDetail.getMovieInfo().getRateCount();
	}
	public Float getAverageRate() {
		return movieDetail.getMovieInfo().getAverageRate();
	}
	
	public String getOverview() {
		return movieDetail.getOverview();
	}
	public String getHomePage() {
		return movieDetail.getHomePage();
	}
	public String getPoster_img() {
		return movieDetail.getPoster_img();
	}
	public String getReleaseDate() {
		return movieDetail.getReleaseDate();
	}
	public String getRunTime() {
		return movieDetail.getRunTime();
	}
	public String getTagLine() {
		return movieDetail.getTagLine();
	}	
}
